package main

import (
	"bufio"
	"fmt"
	"log"
	"os"
	"taxi/ride"
)

func main() {
	file, err := os.Open("testData.txt")
	if err != nil {
		log.Fatal(err)
	}

	defer file.Close()

	scanner := bufio.NewScanner(file)
	for scanner.Scan() {
		fmt.Println((ride.Receipt{Line: scanner.Text()}).ChargeLine())
	}
}
